
CLASS zcl_print_demo DEFINITION
  PUBLIC
  FINAL
  CREATE PUBLIC .

  PUBLIC SECTION.

    INTERFACES if_oo_adt_classrun .
  PROTECTED SECTION.
  PRIVATE SECTION.
ENDCLASS.



CLASS ZCL_PRINT_DEMO IMPLEMENTATION.


  METHOD if_oo_adt_classrun~main.

    DATA(zcl_form_generate) = NEW zcl_form_generate( ).

    zcl_form_generate->generate_form(
      EXPORTING
        iv_form_name = 'PO001'
        iv_node_key_fielname = 'PURCHASEORDER'
        iv_node_key_value = '4500000069'
      IMPORTING
        ev_type = DATA(lv_type)
        ev_message = DATA(lv_message)
        eo_pdf = DATA(lv_pdf)  ).

  ENDMETHOD.
ENDCLASS.
